package com.example.dangdangbackend.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Book {
    //图书编号
    private int bookId;
    //图书名
    private String bookName;
    //分类编号
    private int categoryId;
    //图书原价
    private BigDecimal originPrice;
    //当当价
    private BigDecimal dangdangPrice;
    //库存
    private int stocks;
    //作者
    private String writer;
    //出版社
    private String publisher;
    //出版时间
    private LocalDateTime publishTime;
    //版次
    private String orderEdition;
    //印刷时间
    private LocalDateTime printTime;
    //印次
    private String printNum;
    //IBSN国际标准书号
    private String IBSN;
    //开本
    private String format;
    //纸张
    private String paper;
    //包装
    private String bookPackage;
    //页数
    private int pageNum;
    //字数
    private int wordNum;
    //封面 用来接收图片
    private String picture;
    //编辑推荐
    private String editorPromote;
    //内容简介
    private String contentIntroduction;
    //作者简介
    private String writerIntroduction;
    //基本目录
    private String basicDirection;
    //媒体评论
    private String mediaRemark;
    //上架时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //销量
    private int sales;
    //是否为编辑推荐
    private int status;
}
